﻿LApp.service("DBCenterService", function ($log, $http, $lvl) {

    angular.extend(this, {
        GetAgeReport: function (param) {
            $lvl.get(GlobalConfig.APIServer + "dhapi/reprot/agereprot", param.data, param.success);
        }
    })

    angular.extend(this, {
        GetSysRegionAllData: function (param) {
            $lvl.get(GlobalConfig.APIServer + "api/nbsys/sysregion", param.data, param.success);
        }
    })

    angular.extend(this, {
        //获取评论回复列表
        GetCommentReplyPagedList: function (param) {
            $lvl.get(GlobalConfig.APIServer + "antifake/comment/reply/list", param.data, param.success);
        },
        DeleteCommentReply: function (param) {
            $lvl.get(GlobalConfig.APIServer + "antifake/comment/reply/delete", param.data, param.success);
        },
        AdddCommentReply: function (param) {
            $lvl.post(GlobalConfig.APIServer + "antifake/comment/reply/add", param.data, param.success);
        },
        EditCommentReply: function (param) {
            $lvl.post(GlobalConfig.APIServer + "antifake/comment/reply/edit", param.data, param.success);
        }
    })

   //片区
    angular.extend(this, {
        GetSalesAreaList: function (param) {
            $lvl.get(GlobalConfig.APIServer + "antifleeing/salesares/list", param.data, param.success);
        },
        AddSalesArea: function (param) {
            $lvl.post(GlobalConfig.APIServer + "antifleeing/salesares/add", param.data, param.success);
        },
        EditSalesArea: function (param) {
            $lvl.post(GlobalConfig.APIServer + "antifleeing/salesares/update", param.data, param.success);
        },
        DeleteSalesArea: function (param) {
            $lvl.get(GlobalConfig.APIServer + "antifleeing/salesares/delete", param.data, param.success);
        }
    })
})
